import React from 'react';
import { Link } from 'react-router-dom';
import { getPlayer } from '../../../data/players';

export default function Player (props) {
    var
        player = getPlayer(props.match.params.number);
    
    if(!player) {
        return (
            <div>
                sorry, not find!!!
            </div>
        )
    }
    return (
        <div>
            <Link to="/roster">GO TO BACK</Link>
        </div>
    )
}